fixed an invalid memory access
authorØyvind Kolås <ok@src.gnome.org>
Fri, 4 Nov 2005 10:10:11 +0000 (10:10 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Fri, 4 Nov 2005 10:10:11 +0000 (10:10 +0000)
ChangeLog
babl/babl-format.c

index 08c929c48e779fed2f5de9d08232336734eea911..4c342bf1e2c9e3c69fa214e0d966e52a8cdc2f2f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-04  Øyvind Kolås  <pippin@gimp.org>
+
+       * babl/babl-format.c: (create_name): fixed an invalid memory access in
+       comparision of component order (and now also length.)
+
 2005-10-08  Øyvind Kolås  <pippin@gimp.org>
 
        * docs/index-static.html.in: Fixed the second processing example. (
index 0dae68f9d9208318071d3d93c47d4ef782234bbf..e41aca7c1ab55f6fecc787543b145b9b0e271220 100644 (file)
@@ -138,8 +138,12 @@ create_name (BablModel      *model,
       t++;
     }
 
+  if (same_types && 
+      components != model->components)
+    same_types = 0;
+  
   i=components;
-  while (i--)
+  while (same_types && i--)
     {
       if (*c1 != *c2)
         {